
import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * int n = str.length();求字符长度
 * chr = str.charAt(i);取出各个字符
 */
public class TestDemo {
    public static void main(String[] args) {
        int numbers = 0;
        int words = 0;
        int space = 0;
        int other = 0;
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();


        //write your code here......
        int n = str.length();
        int i = 0;
        char chr = ' ';
        while(i < n){
            chr = str.charAt(i);
            if(chr >= 'a' && chr <= 'z' || chr >= 'A' && chr <= 'Z'){
                words++;
            }else if(chr >= '0' && chr <= '9'){
                numbers++;
            }else if(chr == ' '){
                space++;
            }
            i++;
        }
        other = n - words - numbers - space;
        System.out.println("英文字母"+words+"数字"+numbers+"空格"+space+"其他"+other);
    }
}
